import type { tableCol, tableDropCol } from '@/views/basicData/config/type'

export const col: tableCol[] = [
  {
    label: '所属年份',
    prop: 'belongYear'
  },
  {
    label: '名称',
    prop: 'name'
  },
  {
    label: '上传日期',
    prop: 'uploadDate'
  },
  {
    label: '作者',
    prop: 'author'
  },
  {
    label: '有效期',
    prop: 'periodValidityStart'
  },
  {
    label: '说明',
    prop: 'explain'
  },
  {
    label: '状态',
    prop: 'status'
  },
  {
    label: '操作',
    prop: 'edit'
  }
]

export const dropCol: tableDropCol[] = [
  {
    label: '所属年份',
    prop: 'belongYear'
  },
  {
    label: '名称',
    prop: 'name'
  },
  {
    label: '上传日期',
    prop: 'uploadDate'
  },
  {
    label: '作者',
    prop: 'author'
  },
  {
    label: '有效期',
    prop: 'periodValidityStart'
  },
  {
    label: '说明',
    prop: 'explain'
  },
  {
    label: '状态',
    prop: 'status'
  },
  {
    label: '操作',
    prop: 'edit'
  }
]

export const rulesAlert = {
  belongYear: [{ required: true, trigger: 'blur', message: '请选择所属年份' }],
  periodValidity: [
    { required: true, trigger: 'blur', message: '请选择有效期' }
  ],
  file: [{ required: true, trigger: 'blur', message: '请选择上传附件' }]
}
